import React, {Component} from 'react';
import axios from 'axios';

class TestComponent extends Component {
    constructor(props) {
        super(props);
        this.state = {}
    }

    componentDidMount() {
        axios.get('/react/api/header.json')
            .then((res) => {
                console.log(res)
            })
    }

    render() {
        return (<h2>hello world</h2>);
    }
}

export default TestComponent;